package com.kakarote.hrm.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.kakarote.core.servlet.BaseMapper;
import com.kakarote.hrm.entity.BO.AddFileBO;
import com.kakarote.hrm.entity.PO.HrmEmployeeFile;
import com.kakarote.hrm.entity.VO.EmployeeFileVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 员工附件表 Mapper 接口
 * </p>
 *
 * @author huangmingbo
 * @since 2020-05-12
 */
public interface HrmEmployeeFileMapper extends BaseMapper<HrmEmployeeFile> {

    @InterceptorIgnore(tenantLine = "true")
    Map<String, Object> queryFileNum(@Param("employeeId") Long employeeId);

    List<EmployeeFileVo> queryEmployeeFileList(@Param("employeeId") Long employeeId, @Param("typeList") List<Integer> typeList);

    int deleteIdPhotoFile(@Param("data") HrmEmployeeFile hrmEmployeeFile);
}
